package com.marketingcenter.service;

import com.marketingcenter.entity.ThresholdPromotion;

/**
 * 满减满赠满返活动服务接口
 */
public interface ThresholdPromotionService extends PromotionService<ThresholdPromotion> {

    /**
     * 应用满减规则计算优惠金额
     */
    double calculateDiscount(Long promotionId, double orderAmount);

    /**
     * 检查订单是否满足活动条件
     */
    boolean checkOrderEligibility(Long promotionId, double orderAmount, String itemIds);

}